/*
 * @Description  :
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-01-13 15:10:17
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-01-26 11:07:31
 * @FilePath     : \\tms-obc-web\\src\\app\\shared\\shared.module.ts
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 */
/* eslint-disable import/order */
import { NgModule } from '@angular/core';
import { DelonACLModule } from '@delon/acl';
import { DelonFormModule } from '@delon/form';
import { AlainThemeModule } from '@delon/theme';

import { SHARED_DELON_MODULES } from './shared-delon.module';
import { SHARED_ZORRO_MODULES } from './shared-zorro.module';

// #region your componets & directives
import { PRO_SHARED_MODULES } from '../layout/pro';
import { AddressModule } from './components/address';
import { DelayModule } from './components/delay';
import { FileManagerModule } from './components/file-manager';
import { MasonryModule } from './components/masonry';
import { MouseFocusModule } from './components/mouse-focus';
import { ScrollbarModule } from './components/scrollbar';
import { StatusLabelModule } from './components/status-label';
import { SharedThirdModule } from './shared-third.module';
import { LogisticsTimeLineComponent } from './components/logistics-time-line/logistics-time-line.component';
import { AmapModule } from './components/amap/amap.module';
import { ImageListModule } from './components/imagelist';
import { PipeModule } from './pipes';
import { AccountDetailComponent } from './components/account-detail/account-detail.component';
import { CaptchaModule } from './components/captcha';
import { rebateTableModule } from './components/rebate-table';
import { SearchDrawerModule } from './components/search-drawer';
import { BasicModuleModule } from './basic-module.module';
import { STWidgetModule } from './widget/st-widget.module';

const MODULES = [
  AddressModule,
  DelayModule,
  FileManagerModule,
  MasonryModule,
  MouseFocusModule,
  ScrollbarModule,
  StatusLabelModule,
  SharedThirdModule,
  AmapModule,
  ImageListModule,
  PipeModule,
  rebateTableModule,
  CaptchaModule,
  SearchDrawerModule,

  ...PRO_SHARED_MODULES
];
// #endregion

const SHAREDCOMPONENTS = [LogisticsTimeLineComponent, AccountDetailComponent];

@NgModule({
  imports: [
    BasicModuleModule,
    STWidgetModule,
    AlainThemeModule.forChild(),
    DelonACLModule,
    DelonFormModule,
    ...SHARED_DELON_MODULES,
    ...SHARED_ZORRO_MODULES,
    ...MODULES
    // third libs
  ],
  exports: [
    BasicModuleModule,
    STWidgetModule,
    AlainThemeModule,
    DelonACLModule,
    DelonFormModule,
    // i18n
    ...SHARED_DELON_MODULES,
    ...SHARED_ZORRO_MODULES,
    ...MODULES,
    // third libs
    ...SHAREDCOMPONENTS
  ],
  declarations: SHAREDCOMPONENTS
})
export class SharedModule {}
